package com.ppc.mapper.worker;

import com.github.pagehelper.Page;
import com.ppc.entity.Complaint;
import com.ppc.vo.ComplaintDetailVO;
import com.ppc.vo.ComplaintPageVO;
import org.apache.ibatis.annotations.Mapper;

/**
 * <<<<<<< HEAD:ppc-server/src/main/java/com/ppc/mapper/worker/WorkerComplaintMapper.java
 *
 * @author jianKangS1 ======= 工人举报mapper
 * @author Jeferry >>>>>>>
 * origin/st:ppc-server/src/main/java/com/ppc/mapper/WorkerComplaintMapper.java
 * @date 2023/12/20
 */
@Mapper
public interface WorkerComplaintMapper {

  /**
   * 创建工人举报
   *
   * @param complaint 工人举报实体
   */
  void createComplaint(Complaint complaint);

  /**
   * 查询工人举报
   *
   * @param complaintStatus 工人举报状态
   * @return {@link Page}<{@link ComplaintPageVO}>
   */
  Page<ComplaintPageVO> pageQuery(Integer complaintStatus,Long userId);

  /**
   * 查询工人举报详情
   *
   * @param complaintId 工人举报id
   * @return {@link ComplaintDetailVO}
   */
  ComplaintDetailVO queryComplaintDetail(Long complaintId);
}
